package utils

import (
    "os"
    "path/filepath"
)

func ProjectRoot() string {
    exeFullPath, err := os.Executable()
    if err != nil {
        panic(err)
    }
    exePath := filepath.Dir(exeFullPath)
    return exePath
}

func IsFileExists(filename string) bool {
    _, err := os.Lstat(filename)
    return err == nil
}
